package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 太阳码服务Api
 */
public interface SunCodeApi {
    /**
     * 商品太阳码
     */
    @PostMapping("/sun/code/goods")
    ResultModel<SunCodeGoodsResponse> goods(@RequestBody SunCodeGoodsRequest request);

    /**
     * 名片太阳码
     */
    @PostMapping("/sun/code/card")
    ResultModel<SunCodeCardResponse> card(@RequestBody SunCodeCardRequest request);

    /**
     * 企业太阳码
     */
    @PostMapping("/sun/code/company")
    ResultModel<SunCodeCardResponse> company(@RequestBody SunCodeCompanyRequest request);

    /**
     * 删除太阳码
     */
    @PostMapping("/sun/code/delete")
    ResultModel delete(@RequestBody SunCodeDeleteRequest request);
}
